package com.perfma.xtest.request;

import org.apache.commons.compress.utils.Lists;

import java.util.List;
import java.util.UUID;

/**
 *
 *
 * @author: junhui.si
 * @date: 2024-05-09 16:04
 **/
public class Uuid2 {
    public static void main(String[] args) throws InterruptedException {
        Thread.sleep(3000);

        List<String> list = Lists.newArrayList();
        long startTime = System.currentTimeMillis();
        for (int i = 0; i < 10000000; i++) {
            list.add(UUID.randomUUID().toString());
        }
        System.out.println(System.currentTimeMillis() - startTime);
    }
}
